TSAccountProtection

Public API for initializing and interacting with Transmit Security's Account Protection SDK. Use this object to configure the SDK, report user actions, and manage user session context.

Functions

Link copied to clipboard

Clears the current user context.

Link copied to clipboard

Disables dynamic interaction data collection (e.g., touch events, input timing).

Link copied to clipboard

Retrieves the current session token used for identifying the user session.

Link copied to clipboard
fun init(context: Context, clientID: String)
fun init(context: Context, baseUrl: String, clientID: String)
fun init(context: Context, baseUrl: String, clientID: String, userID: String? = null)

Initializes the SDK and starts collecting device and user interaction data.

Link copied to clipboard
fun initialize(context: Context, clientID: String)
fun initialize(context: Context, baseUrl: String, clientID: String)

Initializes the Account Protection SDK and starts automatic tracking of device and user interactions.

fun initialize(context: Context, baseUrl: String, clientID: String, userID: String? = null)

Initializes the SDK, which starts automatically tracking and submitting info of the user journey.

Link copied to clipboard

Initializes the SDK using client ID and base URL defined in strings.xml (recommended for apps using resource-based configuration).

Link copied to clipboard
fun setLoggingEnabled(loggingEnabled: Boolean)

Enables or disables SDK debug logging.

Link copied to clipboard

Sets the authenticated user's identifier for the current session.

Link copied to clipboard

Reports a user action event to the Account Protection SDK.

Reports a user action event to the SDK, with optional context and transaction data.